Post

Replies

Boosts

Views

Activity

Reply to Lost data in UserDefaults
Could you elaborate on what you changed? We've changed the Data Protection Entitlement to NSFileProtectionCompleteUntilFirstUserAuthentication which solved the issue for us. Also, are you able to reproduce consistently? Yes, it's easily reproducible. Reproduction steps in our case: Launch the app and log in. Force quit the app. Wait. Somewhere in the next hour or so the prewarming will start, which in resolution will call application(_:didFinishLaunchingWithOptions:). As mentioned previously, in our case, we check for some UserDefaults flags there. If they do not exist then we do a complete cleanup (UserDefaults + Keychain). This caused users on iOS 15 to get logged out.
Topic: App & System Services SubTopic: General Tags:
Nov ’21
Reply to Lost data in UserDefaults
Could you elaborate on what you changed? We've changed the Data Protection Entitlement to NSFileProtectionCompleteUntilFirstUserAuthentication which solved the issue for us. Also, are you able to reproduce consistently? Yes, it's easily reproducible. Reproduction steps in our case: Launch the app and log in. Force quit the app. Wait. Somewhere in the next hour or so the prewarming will start, which in resolution will call application(_:didFinishLaunchingWithOptions:). As mentioned previously, in our case, we check for some UserDefaults flags there. If they do not exist then we do a complete cleanup (UserDefaults + Keychain). This caused users on iOS 15 to get logged out.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21